/*
单选
checked--默认选中 disabled--禁止选中 多个标签name属性一致即可实现单选
<input class="yb-radio" type="radio" checked disabled name="fruit">
<span>苹果</span>
<input class="yb-radio" type="radio" name="fruit">
<span>香蕉</span>
*/
/*
多选
checked--默认选中 disabled--禁止选中
<input class="yb-checkbox" type="checkbox" checked disabled />
<input class="yb-checkbox" type="checkbox" />
*/
/*
搜索框带搜索图标
<div class="yb-search">
  <input type="text" class="yb-input" placeholder="请输入">
  <span class="iconfont icon-sousuo"></span>
</div>
*/
/* form表单的封装 */
input[type="checkbox"].yb-checkbox,
input[type="radio"].yb-radio {
  width: 14px;
  height: 14px;
  margin: 0;
  position: relative;
  vertical-align: middle;
}

input[type="checkbox"].yb-checkbox::before,
input[type="radio"].yb-radio::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 1px solid #D4D8DA;
  box-sizing: border-box;
  font-family: "iconfont" !important;
  font-size: 12px;
  line-height: 14px;
  font-style: normal;
  font-weight: bold;
  color: #17C48D;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

input[type="checkbox"].yb-checkbox:disabled::before,
input[type="radio"].yb-radio:disabled::before {
  cursor: not-allowed;
}

input[type="checkbox"].yb-checkbox:hover::before,
input[type="radio"].yb-radio:hover::before {
  border-color: #17C48D;
}

input[type="checkbox"].yb-checkbox:hover:disabled::before,
input[type="radio"].yb-radio:hover:disabled::before {
  border-color: #D4D8DA;
}

input[type="checkbox"].yb-checkbox:disabled::before {
  background-color: #D4D8DA;
  color: #A4ABB0;
}

input[type="checkbox"].yb-checkbox:checked::before {
  content: '\e62f';
}

input[type="radio"]::before {
  border-radius: 100%;
}

input[type="radio"].yb-radio:disabled::before {
  background-color: #D4D8DA;
  color: #A4ABB0;
}

input[type="radio"].yb-radio:checked::before {
  content: '\e600';
}

input.yb-input {
  height: 30px;
  line-height: 30px;
  background-color: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 14px;
}

div.yb-search {
  position: relative;
  display: inline-block;
}

div.yb-search>input.yb-input {
  padding-right: 30px;
}

div.yb-search>span.iconfont {
  color: #0BC3A7;
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 1;
  cursor: pointer;
}
